package restaurant.selector.database;

import java.util.List;

import restaurant.selector.Restaurant;
import restaurant.selector.User;

public interface DatabaseWorker {

	public abstract List<Restaurant> getRestaurants();
	public abstract Restaurant getRestaurantByName(String name);
	public abstract Restaurant getRestaurantById(int id);
	public void addRestaurant(String name, boolean quick, int distance);
	public void deleteRestaurant(Restaurant r);
	
	public abstract List<User> getUsers();
	public abstract User getUserByName(String name);
	public abstract User getUserById(int id);
	public void addUser(String name);
	public void deleteUser(User u);
}